package edu.office.entities;

import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
import jakarta.persistence.*;
import jakarta.validation.constraints.NotNull;

/**
 * @author hgs
 */
@Entity
@Table(name = "STATUSOFRESOURCES")
public class Statusofresources extends EntityCommon<Statusofresources> implements Identifiable {


    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "ID")
    private Integer ID;
    @Column(name = "MEANING", length = 16)
    private String MEANING;


    public Statusofresources() {
    }

    public Statusofresources(Integer id) {
        this.ID = id;
    }


    public boolean isExaminPassed() {
        return ID == 1;
    }

    public boolean isWaitingExamin() {
        return ID == 0;
    }

    public boolean isExaminFailed() {
        return ID == 2;
    }

    public boolean isSaved() {
        return ID == 3;
    }

    public Integer getID() {
        return ID;
    }

    public void setID(Integer id) {
        this.ID = id;
    }


    public String getMEANING() {
        return MEANING;
    }

    public void setMEANING(String meaning) {
        this.MEANING = meaning;
    }


}
